import Mock from 'mockjs';
export default [
  {
    type: 'post',
    url: '/host/cloud/cooperation/warning/history',
    response: () => {
      return Mock.mock({
        "retCode": '0000_0',
        "retMessage": '执行成功',
        "data|20-30": [
          {
            "id|+1": 0,
            "createTime": '@datetime("yyyy-MM-dd HH:mm:ss")',
            "address": '中山路与解放路交叉路口',
            "type|1": ['异常路况', '异常车辆', '恶劣天气'],
            "riskLevel|1-5": 1,
          }
        ]
      })
    }
  },
  {
    type: 'post',
    url: '/host/cloud/cooperation/warning/area',
    response: () => {
      return Mock.mock({
        "retCode": '0000_0',
        "retMessage": '执行成功',
        "data|5": [
          {
            "area|+1": ['亦庄', '太和桥', '南京', '苏州', '上海'],
            "value|10-50": 10
          }
        ]
      })
    }
  },
  {
    type: 'post',
    url: '/host/cloud/cooperation/warning/type',
    response: () => {
      return Mock.mock({
        "retCode": '0000_0',
        "retMessage": '执行成功',
        "data|15": [
          {
            "type|+1": ['异常路况', '异常路况', '异常路况', '异常路况', '异常路况', '异常车辆', '异常车辆', '异常车辆', '异常车辆', '异常车辆', '恶劣天气', '恶劣天气', '恶劣天气', '恶劣天气', '恶劣天气'],
            "area|+1": ['亦庄', '太和桥', '南京', '苏州', '上海', '亦庄', '太和桥', '南京', '苏州', '上海', '亦庄', '太和桥', '南京', '苏州', '上海'],
            "value|30-100": 100
          }
        ]
      })
    }
  },
  {
    type: 'post',
    url: '/host/cloud/cooperation/warning/level',
    response: () => {
      return Mock.mock({
        "retCode": '0000_0',
        "retMessage": '执行成功',
        "data|5": [
          {
            "riskLevel|+1": ['极高', '高', '中', '低', '极低'],
            "value|10-100": 100
          }
        ]
      })
    }
  }
]